import { GetterFn, SongDetailProp } from './type'

/**
 * 获取正在播放的歌曲
 * @param state
 * @returns
 */
export const playingSong: GetterFn<SongDetailProp> = ({ playList, currentIndex }) => {
    return playList[currentIndex] || {}
}
